package zhishuang.wang.sansi.tools.time;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @Author Zhishuang.Wang
 * @Date 2023/7/5 11:17
 * @Email 1406110602@qq.com
 */
public class DateFormat {
    public DateFormat() {
    }

    public static String getNowDataFormat() {
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
        return dateFormat.format(new Date());
    }

    public static String getNowDataFormatFcms() {
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMddhhmmss");
        return dateFormat.format(new Date());
    }
}

